﻿<UserControl x:Class="MyFloridaHouse.libSvOpenDistricts.Dialogs.PDFErrorDlgView"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             Visibility="{Binding isDlgActive, Converter={StaticResource ConvertBoolToVisibility}}"
             Width="250"
             Height="170">

    <UserControl.Resources>
        <!-- 
            NOTE: All dictionaries are picked up in the App.xaml, including styles here allows us to see the effects in the Visual Studio Designer
            NOTE: The converter staticResources will show up here as "Could not be resolved", but they will be picked up from App.xaml at runtime
        -->
        <ResourceDictionary Source="/libSvCommonUtilities;component/Resources/Styles.xaml" />
    </UserControl.Resources>
    <!---->
    <Border Margin="0"  CornerRadius="20" BorderBrush="#FF549D9D"  BorderThickness="2"  
            Background="{StaticResource DialogBackgroundBrush}"
            >

        <StackPanel >

    <sdk:Label Content="PDF ERROR"  Style="{StaticResource lblMessageStyle}"/>
    <sdk:Label Content="" HorizontalAlignment="Center"/>
            <TextBlock Width="auto" TextWrapping="Wrap" Margin="10" 
                       Text="An error ocurred while trying to generate your PDF file.  To fix the problem try saving the file in DOJ format and then re-importing from DOJ." />

    <StackPanel  Orientation="Horizontal" HorizontalAlignment="Center" Margin="15">
        <Button x:Name="OKButton" Content="OK" Command="{Binding CmdOK}" Width="75" Height="23"  Margin="0,5,0,0"  />
    </StackPanel>
    </StackPanel>
    </Border>
</UserControl>

